<?xml version="1.0" encoding="utf-8"?>
<!-- Main JSP page for Library Locator Map -->

<!-- [Insert copyright and license information here -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@page import="uk.ac.lse.libraryLocator.mapDisplay.*" %>
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <style type="text/css" title="styled">
            @import url('librarylocator.css');
        </style>
        <title>Library Locator Map Display</title>
    </head>
    <body>
    <%-- This page contains two parts, one which calls the code for displaying the map itself, and the other for
displaying other information dependent on options in the calling URL --%>
        <div class="main">

            <div class="displaytable">
                <table>
                <% String item = request.getParameter("item");
                    if ((item != null) && !"".equals(item)) {
                %>
                    <col align="left" width="50%"/><%-- this sets the widths of the columns of the table only if
                    two are displayed --%>
                    <col align="left" width="50%"/>
                    <tr>
                        <%-- This cell will contain the other information: call lookup to LMS database --%>
                        <td >
                            <% String[] itemInfo = mapDisplay.obtainData(request);
                                Iterator it = itemInfo.iterator();
                            %>
                        </td>
                        <% } else { %>
                    <tr><%-- need to make sure it's displayed! --%>
                        <% } %>
                        <td>
                            <%-- This cell will contain the graphic: call graphic overlay servlet --%>
                        </td>
                    </tr>
                </table>
            </div>
            <div name="bottomtext">
            <p><!-- Space for copyright etc if needed -->
            This page was produced by the LSE Library Locator software.</p>
        </div>
        </div>
    </body>
</html>